package com.so206.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class AlipayTradeConfig implements Serializable {
    private Long id;

    /**
    * 是否启用:0.禁用,1.启用
    */
    private Integer status;

    /**
    * 费率计算:0.用户接口费率,2.自定义费率
    */
    private Integer settConfig;

    /**
    * 自定义费率计算
    */
    private BigDecimal sett;

    /**
    * 收款账户
    */
    private String trName;

    /**
    * 收款账号
    */
    private String trAccount;

    /**
    * 转款备注
    */
    private String trDesc;

    /**
    * 创建时间
    */
    private Date createTime;

    /**
    * 修改时间
    */
    private Date optTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSettConfig() {
        return settConfig;
    }

    public void setSettConfig(Integer settConfig) {
        this.settConfig = settConfig;
    }

    public BigDecimal getSett() {
        return sett;
    }

    public void setSett(BigDecimal sett) {
        this.sett = sett;
    }

    public String getTrName() {
        return trName;
    }

    public void setTrName(String trName) {
        this.trName = trName;
    }

    public String getTrAccount() {
        return trAccount;
    }

    public void setTrAccount(String trAccount) {
        this.trAccount = trAccount;
    }

    public String getTrDesc() {
        return trDesc;
    }

    public void setTrDesc(String trDesc) {
        this.trDesc = trDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getOptTime() {
        return optTime;
    }

    public void setOptTime(Date optTime) {
        this.optTime = optTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", status=").append(status);
        sb.append(", settConfig=").append(settConfig);
        sb.append(", sett=").append(sett);
        sb.append(", trName=").append(trName);
        sb.append(", trAccount=").append(trAccount);
        sb.append(", trDesc=").append(trDesc);
        sb.append(", createTime=").append(createTime);
        sb.append(", optTime=").append(optTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AlipayTradeConfig other = (AlipayTradeConfig) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getSettConfig() == null ? other.getSettConfig() == null : this.getSettConfig().equals(other.getSettConfig()))
            && (this.getSett() == null ? other.getSett() == null : this.getSett().equals(other.getSett()))
            && (this.getTrName() == null ? other.getTrName() == null : this.getTrName().equals(other.getTrName()))
            && (this.getTrAccount() == null ? other.getTrAccount() == null : this.getTrAccount().equals(other.getTrAccount()))
            && (this.getTrDesc() == null ? other.getTrDesc() == null : this.getTrDesc().equals(other.getTrDesc()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getOptTime() == null ? other.getOptTime() == null : this.getOptTime().equals(other.getOptTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getSettConfig() == null) ? 0 : getSettConfig().hashCode());
        result = prime * result + ((getSett() == null) ? 0 : getSett().hashCode());
        result = prime * result + ((getTrName() == null) ? 0 : getTrName().hashCode());
        result = prime * result + ((getTrAccount() == null) ? 0 : getTrAccount().hashCode());
        result = prime * result + ((getTrDesc() == null) ? 0 : getTrDesc().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getOptTime() == null) ? 0 : getOptTime().hashCode());
        return result;
    }
}